#include "MainWindow.h"
#include "VFunctions.h"
#include "VFolderData.h"
#include "VGlobal.h"

#include <QApplication>
#include <QDebug>
#include <QSettings>
#include <QAction>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonValue>
#include <QJsonDocument>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    // 初始化路径
    VFunctions::init_path();
    VFunctions::load_setting();
    VFunctions::init_keyword_map();
    a.setFont(QFont(VGlobal::setting.app_font_name, 9));
    // 注册MessageHandler
    // qInstallMessageHandler(VFunctions::outputMessage);

    VGlobal::version = "1.2";
    MainWindow w;
    w.show();

    return a.exec();
}
